package com.example.recruitment_website.service.Impl;

import com.example.recruitment_website.domain.KeyWords;
import com.example.recruitment_website.repository.KeyWordsRepository;
import com.example.recruitment_website.service.KeyWordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class KeyWordsImpl implements KeyWordsService {

    @Autowired
    KeyWordsRepository keyWordsRepository;
    @Override
    public List<KeyWords> findHotKey() {
        List<KeyWords> list = keyWordsRepository.findAll();
        Collections.sort(list);
        return list;
    }



}
